home *** CD-ROM | disk | FTP | other *** search
- func void GuestConnectCB (Net_Client _client);
- func void GuestDisconnectCB (Net_Client _client);
- func void UserDisconnectCB (Net_Client _client);
-
-
-
- func void fnMSUserLogin ( szx _szLogin, szx _szPassword );
-
- // *** database data ***
- func void fnUserToServerDatabase_Data(szx _szDatabaseName);
-
- func void fnReadDB_Ready(i32x _iUserId,i32x _iDatabase); /// Update client vote next phase/day or race
- func void fnReadDB_Invite(i32x _iUserId,i32x _iDatabase); /// Update client race invitation
- func void fnReadDB_StratZone(i32x _iUserId,i32x _iDatabase);/// Update client strategy zones
- func void fnReadDB_CyclistStrat(i32x _iUserId,i32x _iDatabase);/// Update client cyclist strategy ID
- func void fnReadDB_EquipmentSelection(i32x _iUserId,i32x _iDatabase);/// Update client cyclist equipment selection
- func void fnReadDB_TrainingWeek(i32x _iUserId,i32x _iDatabase); /// Update the training weeks of the team of the user
- func void fnReadDB_TrainingSeason(i32x _iUserId,i32x _iDatabase); /// Update the training season of the team of the user
- func i32x fnReadDB_StaffRole(i32x _iUserId,i32x _iDatabase); /// Update the staff role of the team of the user
- func i32x fnReadDB_HireStaff(i32x _iUserId,i32x _iDatabase);
- func i32x fnReadDB_LayoffStaff(i32x _iUserId,i32x _iDatabase);
- func i32x fnReadDB_Roster(i32x _iUserId,i32x _iDatabase);
-
- // Temporary global
- var i32x g_iRoster[9];
-
- // *** Subscribe/Unsubscribe ***
-
- func void fnUserSubscribe ( i32x _iTeamID);
- func void fnUserInRaceUnsubscribe ( i32x _iTeamID);
- func void fnUserUnsubscribe ();
- func void fnUserUnsubscribeNull ();
-
-
-
- // *** Admin ***
-
- func void fnAdminKickUser(szx _szLogin);
-
- // Vote test
- func void fnGameVote_Test();
-
-
- // *** InRace ***
-
- func void StartUDP();
- func void StartUDP_Null();
- func void StopUDP();
- func void StopUDP_Null();
- func void fnGame_Chat(i32x _iSendToBitfield, szx _szMessage);
-
-
-
-
-
- // *********************
- // * Incomming Messages
- // *********************
-
- func void MSComponentDestroy(Gui_Component _poComponent);
-
- message ComponentDestroy(Gui_Component _poComponent);
-
- interface iAncestorInterface
- {
- // guest connect
- GuestConnectCB Connect;
-
- MSComponentDestroy ComponentDestroy;
- }
-
-
- // ** common guest/user **
-
- interface iGuestUserInterface
- {
- }
-
- class CGuestUser
- {
- var i32x m_iUserId;
- var szx m_szLogin;
- var szx m_szPassword;
- var Net_Client m_pClient;
- };
-
-
- // *** guest interface ***
-
-
- interface iGuestInterface
- {
- // guest disconnect
- GuestDisconnectCB Disconnect;
- }
-
-
- interface iGuestLoginInterface
- {
- // login
- fnMSUserLogin mGame_UserLogin;
- }
-
-
- interface iGuestSubscribeInterface
- {
- // subscribe
- fnUserSubscribe mGame_UserSubscribe;
- }
-
- // *** guest data ***
-
- class CBasicGuest
- {
- };
-
- class CLoginGuest
- {
- };
-
-
- class CSubscribeGuest
- {
- };
-
-
- // *** user interface ***
-
-
- interface iUserInterface
- {
- // chat
- fnGame_Chat mGame_Chat;
-
- // disconnect
- UserDisconnectCB Disconnect;
-
- // database data
- fnUserToServerDatabase_Data Database_Data;
-
- // unsubscribe
- fnUserUnsubscribe mGame_UserUnsubscribe;
-
- // udp connection
- StopUDP mStopUDP;
- }
-
-
- interface iInRace
- {
- // unsubscribe
- fnUserInRaceUnsubscribe mGame_UserUnsubscribe;
-
- // udp connection
- StartUDP mStartUDP;
- StopUDP mStopUDP;
-
-
- //inrace interface management
- I_IndividualOrder mIndividualOrder;
- // I_GroupOrder mGroupOrder;
- // I_GroupBehaviour mGroupBehaviour;
- I_AIBreak mAIBreak;
- I_AIWithdrawal mAIWithdrawal;
- I_AIAllWithdrawal mAIAllwithdrawal;
- I_AIFall mAIFall;
- PhysicDeltaPos mPhysicDeltaPos;
- PhysicDeltaSpeed mPhysicDeltaSpeed;
-
- SetInRaceClientReady mInRaceReady;
- }
-
-
- class CBasicUser
- {
- };
-
-
- class CInRaceUser
- {
- };
-
-
- // Game over interface
- interface iGameOver
- {
- // unsubscribe
- fnUserUnsubscribeNull mGame_UserUnsubscribe;
-
- //Add iInRace void interface
- StartUDP_Null mStartUDP;
- StopUDP_Null mStopUDP;
-
- I_IndividualOrder_Null mIndividualOrder;
-
- AIBreak_Null mAIBreak;
- AIWithDrawal_Null mAIWithdrawal;
- AIAllwithdrawal_Null mAIAllwithdrawal;
- AIFall_Null mAIFall;
- PhysicDeltaPos_Null mPhysicDeltaPos;
- PhysicDeltaSpeed_Null mPhysicDeltaSpeed;
-
- InRaceReady_Null mInRaceReady;
- }
-
-
- // ******************************
- // * Outgoing Messages
- // ******************************
-
-
- message mUser_GameGuestOK ();
- message mUser_GameSubscribeOK (i32x _iUserId);
- message mUser_GameUnsubscribeOK ();
- message mUser_GameSubscribeCancel();
- message mUser_GameUnsubscribeCancel();
- message mUser_GameLoginOK (i32x _iUserID);
- message mUser_InRaceStart (i32x _iIRteamID); // Tell the client that the RServer has started the race and send the InRaceTeamID
- message mUser_InRaceStop (); // Tell the client that the RServer has stopped the race
- message mUser_Chat(i32x _iUserId, szx _szMessage);
- message mUser_NotifyUserReady(i32x iUserID);
- message mUser_NotifyUserNotReady(i32x iUserID);
- message mUser_ForceRace();
-
- //Client interface message
- message mCSendEvent(i32x _iEventType,i32x _iCyclistIndex,i32x _iParam1,i32x _iParam2,szx _szParam);
- message mCSendInterface(i32x _iCyclistIndexInTeam,f32x _fEffortSliderValue,f32x _fEffortMaxSliderValue);
- message mEndOfGameMode(i32x _iLastStageID);
-
-